#include "stdafx.h"
#include "Shell.h"

bool ShellIF::addShell(SHELL_OPTION * shellOption)
{
	HMODULE hm = LoadLibrary(_T("spro.dll"));
	if (hm != NULL)
	{
		typedef   bool( *fun)(PSHELL_OPTION shell) ;
		
		fun getShellData = NULL;
		getShellData = (fun)GetProcAddress(hm,"getShellData");
		DWORD errNo = GetLastError();
		bool b = getShellData(shellOption);
		FreeLibrary(hm);
		return b;
		
	}
		
	return false;
}
